package org.adorsys.aderp.orga.repository;

import java.util.List;

import org.adorsys.aderp.orga.domain.OrgaAddressRole;
import org.adorsys.aderp.orga.domain.OrgaPerson;
import org.adorsys.aderp.orga.domain.OrgaResource;
import org.adorsys.aderp.orga.domain.ResourceAddress;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.roo.addon.layers.repository.jpa.RooJpaRepository;

@RooJpaRepository(domainType = ResourceAddress.class)
public interface ResourceAddressRepository {
	List<ResourceAddress> findByOrgaResource(OrgaResource orgaResource);
	Page<ResourceAddress> findByOrgaResource(OrgaResource orgaResource, Pageable pageable);
	Page<ResourceAddress> findByOrgaResourceAndAddressRole(OrgaResource orgaResource, OrgaAddressRole addressRole, Pageable pageable);
	Page<ResourceAddress> findByAddressRole(OrgaAddressRole addressRole, Pageable pageable);

}
